//
//  LSZWalkmanCategoryTableViewCell.m
//  PartyClassCloud
//
//  Created by 梁素珍 on 2018/8/25.
//  Copyright © 2018年 九酷. All rights reserved.
//

#import "LSZWalkmanCategoryTableViewCell.h"

@implementation LSZWalkmanCategoryTableViewCell

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imageViewOver = [[UIImageView alloc]init];
        self.imageViewOver.frame = CGRectMake(10, 10, 60, 60);
        [self addSubview:self.imageViewOver];
        
        self.labelName = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.imageViewOver.frame)+10, CGRectGetMinY(self.imageViewOver.frame)+10, ScreenWidth-CGRectGetMaxX(self.imageViewOver.frame)-20, 24)];
        self.labelName.textColor = titleColorLSZ;
        self.labelName.font = FONT_(17);
        [self addSubview:self.labelName];
    }
    return self;
}
-(void)setSecondaryInterfaceMg:(LSZSecondaryInterfaceMg *)secondaryInterfaceMg
{
    [self.imageViewOver sd_setImageWithURL:[NSURL URLWithString:secondaryInterfaceMg.coverUrl] placeholderImage:[UIImage imageNamed:@"默认"]];
    self.labelName.text = secondaryInterfaceMg.name;
}
@end
